import 'package:flutter/material.dart';

class FlutterAssets extends StatefulWidget {
  FlutterAssets({Key key}) : super(key: key);

  @override
  _FlutterAssetsState createState() => _FlutterAssetsState();
}

class _FlutterAssetsState extends State<FlutterAssets> {
  double mx = 0, my = 0;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('如何导入flutter资源文件'),
      ),
      body: ListView(
        children: [
          Image.asset("images/banner.jpeg"),
          Container(
            child: Text(
              "fontFamily",
              style: TextStyle(
                fontFamily: 'Maobi',
                fontSize: 40,
              ),
            ),
          ),
          Container(
            child: Text(
              "fontFamily",
              style: TextStyle(
                fontFamily: 'iconfont',
                fontSize: 40,
              ),
            ),
          ),
          Container(
            child: Text(
              "fontFamily",
              style: TextStyle(
                fontFamily: 'CodaCaption',
                fontSize: 40,
              ),
            ),
          )
        ],
      ),
    );
  }
}
